<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
        content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Promise的API</title>
</head>
<body>
    <script>
        /**
         * 1. Promise 的实例化接收一个 函数类型的参数( 执行器函数 )
         * 2. resolve和 reject 两个形参类型都是 函数.
         * 3. 执行器函数是一个同步的回调函数
         */
        new Promise((resolve, reject) => {
            console.log(111);
        });

        console.log(222);
        

    </script>
</body>

</html>